﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrokerBase.Lib.Core;
using BrokerBase.Lib.Metadata;

namespace BrokerBase.Lib.Product
{
    /// <summary>
    /// 辅助属性
    /// </summary>
    public interface IAuxProperty:IPK
    {

        IProduct Owner { get; set; }

        /// <summary>
        /// 元数据
        /// </summary>
        string DataType { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        string Value { get; set; }
        /// <summary>
        /// 是否可变
        /// </summary>
        bool IsVariable { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        string Description { get; set; }
        /// <summary>
        /// 是否是集合
        /// </summary>
        bool IsCollection { get; }

        object[] ListItems { get; }

        object GetValue();

    }
}
